/***************************************************************************
 创建者: 华磊
 开始时间: 2019.4.26
 copyright: (C) 华友高科
 修改说明: (每次有修改就添加一条，带有 修改人，修改时间，修改描述)
 example (1) hualei 2017.5.8 类的具体实现代码编写

 ***************************************************************************
 *  @file x.h
 *  功能:
 *
 *                                                                         *
 ***************************************************************************/
#ifndef TRACKSTARTLOGIC_H
#define TRACKSTARTLOGIC_H
#include "GeneralDefine.h"
#include "trackstartinstruction.h"
#include "trackendinstruction.h"
#include "trackgetdatainstruction.h"

class McControllerThread;
class ProgramEngine;

class TrackStartLogic
{
public:
    TrackStartLogic(int robotIdIn, ProgramEngine* programEngineIn,
                    McControllerThread *programMcControllerIn);
public:
    E_PROGRAM_LOOP_RESULT startTrackStart(int programNumIn, const TrackStartInstruction &instructionIn, int lineIndex);
    E_PROGRAM_LOOP_RESULT startTrackEnd(int programNumIn, const TrackEndInstruction &instructionIn, int lineIndex);
    E_PROGRAM_LOOP_RESULT startTrackGetData(int programNumIn, const TrackGetDataInstruction &instructionIn, int lineIndex);


private:
    int robotId;
    /**
     * @brief programMcController       算法线程指针
     */
    McControllerThread *programMcController;
    ProgramEngine* programEngine;
};

#endif // TRACKSTARTLOGIC_H
